package com.stx.common;

import com.sun.istack.internal.NotNull;

public class PageValue<T> {
    //用于接收前端回来的查询的字段，第几页，每页显示的数量
    private T plaName;//查询的字段
    private Integer number;
    private T judRole;
    private T department;
    private T userName;
    private T address;
    private T subject;
    @NotNull
    private Integer currentPage;//查询的页数
    @NotNull
    private Integer pageSize;//每一页的数量

    public T getPlaName() {
        return plaName;
    }

    public void setPlaName(T plaName) {
        this.plaName = plaName;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public T getJudRole() {
        return judRole;
    }

    public void setJudRole(T judRole) {
        this.judRole = judRole;
    }

    public T getDepartment() {
        return department;
    }

    public void setDepartment(T department) {
        this.department = department;
    }

    public T getUserName() {
        return userName;
    }

    public void setUserName(T userName) {
        this.userName = userName;
    }

    public T getAddress() {
        return address;
    }

    public void setAddress(T address) {
        this.address = address;
    }

    public T getSubject() {
        return subject;
    }

    public void setSubject(T subject) {
        this.subject = subject;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "PageValue{" +
                "plaName=" + plaName +
                ", number=" + number +
                ", judName=" + judRole +
                ", department=" + department +
                ", userName=" + userName +
                ", address=" + address +
                ", subject=" + subject +
                ", currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                '}';
    }
}
